#ifndef QUEUE_H
#define QUEUE_H
#include <QApplication>
#include <stdio.h>
#include "ChessNode.h"
using namespace std;

struct queueNode
{
public:
    ChessNode* chessnode;
    queueNode* next;
    queueNode():chessnode(NULL),next(NULL) {}
    queueNode(ChessNode* p)
    {
        chessnode = p;
        next = NULL;
    }
    ~queueNode() {}
};

class Queue   //╤сапй╣ож
{
private:
    queueNode* firstOne;
    queueNode* lastOne;

public:
    int size_;
    bool empty_();
    void pop();
    void push(ChessNode* p);
    ChessNode* front_();
    ChessNode* back_();
    Queue();
    ~Queue();
};

#endif // QUEUE_H
